// 定义 navigateTo 函数
function navigateTo(path) {
  console.log(path);
  if (path.includes('myclub')) {
    const id = path.split('/')[1];
    this.$router.push({
      name: 'myclub',
      params: { id: id }
    });
  } else {
    this.$router.push({ name: path });
  }
}

// 将函数导出
export default navigateTo;
